package com.woniuxy.credit_loans.staff_ma.service.impl;

import com.woniuxy.credit_loans.entity.ChangeRole;
import com.woniuxy.credit_loans.mapper.ChangeRoleMapper;
import com.woniuxy.credit_loans.staff_ma.service.ChangeRoleService;
import com.woniuxy.credit_loans.staff_ma.vo.ChangeRoleVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ChangeRoleServiceImpl implements ChangeRoleService {
    @Autowired
    private ChangeRoleMapper changeRoleMapper;

    @Override
    public ChangeRoleVo selectbyCompanyId(int companyId) {
        return changeRoleMapper.selectbyCompanyId(companyId);
    }

    @Override
    public List<ChangeRole> selectAllCompany() {
        return changeRoleMapper.selectAllCompany();
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return changeRoleMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(ChangeRole record) {
        return changeRoleMapper.insertSelective(record);
    }

    @Override
    public ChangeRole selectByPrimaryKey(int id) {
        return changeRoleMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(ChangeRole record) {
        return changeRoleMapper.updateByPrimaryKeySelective(record);
    }
}
